<?php

include_once __DIR__ . '/config.php';
require_once __DIR__ . '/functions.php';

$params = [
    'appId'           => APP_ID,
    'nftName'         => '测试',
    'cid'             => '',
    'nftURI'          => 'http://dcf.laifuzi.test/home/products/1.json',
    'copyright'       => '本意科技',
    'issuer'          => '本意科技',
    'operator'        => '本意科技',
    'remark'          => '',
    'count'           => '1',
    'owner'           => '0xb435784c649dd199b109976681d60a8ccdff48f0',
    'contractAddress' => '0xb4b9f935bf7eb61a3e1c2fdea9d60693dd67b4c5',
    'collectSn'       => '-1',
    'serviceId'       => '',
];

$json = httpPost('scs_nft_mint', $params, true);
$hash = $json['result'] ?? '';
// 45b9e41811934296a6b72eaefa4d8929
// 520d065f02db4d67a9f795dd05f3ee14
var_dump('hash: ' . $hash);
